package com.ming.springboot.controller;

import com.ming.springboot.vo.Author;
import com.ming.springboot.vo.Book;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by mqsi on 2022/5/13 19:55
 */
@RestController
public class BookController {

	@PostMapping("/book")
	public void addBook(@ModelAttribute("b") Book book, @ModelAttribute("a") Author author){
		System.out.println(book);
		System.out.println(author);
	}
}
